﻿using System;
using NHibernate;

namespace GdNet.Integrations.NHibernate.SessionManagement
{
    public interface INHibernateSessionManager : IDisposable
    {
        ISession GetSession();

        ITransaction BeginTransaction();
        void CommitTransaction();
        void RollbackTransaction();

        void CloseSession();
    }
}
